var forMat = function (val) {
  var date = new Date(val)
  var year = date.getFullYear()
  var month = date.getMonth() + 1
  var day = date.getDate()
  var hours = date.getHours()
  hours = hours < 10 ? '0' + hours : hours
  var minutes = date.getMinutes()
  minutes = minutes < 10 ? '0' + minutes : minutes
  var seconds = date.getSeconds()
  seconds = seconds < 10 ? '0' + seconds : seconds
  var res = year + '年' + month + '月' + day + '日 ' + hours + ':' + minutes + ':' + seconds
  return res
}

export { forMat }
